package com.ph.elec.template;

import org.apache.click.Page;
import org.apache.click.util.ClickUtils;

import com.ph.elec.panel.RightSearchPanel;

public class BasePage extends Page {
	
	protected static final String CSS_IMPORT = 
        	"<link type='text/css' rel='stylesheet' href='/static/default.css' />\n"; 
	
	public String title = "CHANGE ME!!!";
	public String keywords = "";
	public String description = "";

	public String root_url = "/page/index.htm";
	
	public RightSearchPanel rightPanel;
	
	public BasePage() {
		rightPanel = new RightSearchPanel();
		addControl(rightPanel);
	}
	
	@Override
	public String getTemplate() {
		return "/tmpl/base.htm";
	}
	
	@Override
	public String getHtmlImports() {
		return ClickUtils.createHtmlImport(CSS_IMPORT, getContext());
	}

}
